
package com.gp.activity.base;

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.widget.Toast;

public class BaseActivity extends Activity {
   
    protected static final int SHOW_TIME = 1;

    protected void showMsg(String pMsg) {
        
        Toast.makeText(this, pMsg, SHOW_TIME).show();
    }

    /**
     * 显示一个Toast信息
     * 
     * @param p_Msg
     *            要显示的信息ID
     */
    protected void ShowMsg(int p_ResID) {
        Toast.makeText(this, p_ResID, SHOW_TIME).show();
    }

    protected void openActivity(Class<?> pClass) {
        
        Intent lIntent = new Intent();
        lIntent.setClass(this, pClass);

        startActivity(lIntent);
    }
}
